Part Number Hot Search : 
DC110 PT801 FBL2031 0000X BU150 2SA838 680MZ LC78645
Product Description
Full Text Search
 

To Download W3150 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
W3150 Datasheet
(Ver. 1.0)
(c)2005 WIZnet Co., Inc. All Rights Reserved. For more information, visit our website at http://www.wiznet.co.kr
nec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Document History Information
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Revision Ver. 1.0 Data May 16, 2005 Description Release with W3150 Launching
inec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
WIZnet's Online Technical Support
Click
iinChipTM W3150 Datasheet
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Description
The iinChip W3150 is an LSI of hardware protocol stack that provides an easy, low-cost solution for highspeed Internet connectivity for digital devices by allowing simple installation of TCP/IP stack in the hardware. The W3150 offers system designers a quick, easy way to add Ethernet networking functionality to any product. Implementing this LSI into a system can completely offload Internet connectivity and processing standard protocols from the system, thereby significantly reducing the software development cost. The W3150 contains TCP/IP Protocol Stacks such as TCP, UDP, ICMP, IPv4, ARP and PPPoE protocols, as well as Ethernet protocols such as Data Link Control and MAC protocol. The total internal memory size is 16Kbytes, which is the buffer for transmit and receive operations. The W3150 provides a local bus interface to various MCUs and standard MII(Media Independent Interface) specification consisting of nibble data bus for Ethernet PHY devices. The W3150 is a best-fitted device for embedded application with Internet-Connectivity including IP-Setop Box, Internet-DVR, Internet phones, VoIP SOC chips, Internet MP3 players, handheld medical devices, various industrial system monitoring and metering, and many other non-portable large consumer electronic products. electronic devices such as
Features
Support Hardwired TCP/IP Protocols : TCP, UDP, ICMP, IPv4, ARP, PPPoE, Ethernet Support PPPoE Protocol with PAP/CHAP Authentication mode Supports 4 independent sockets simultaneously Standard MII Interface for Ethernet-PHY chip Supports 10BaseT/100BaseTX Supports full-duplex mode Internal 16Kbytes Memory for Tx/Rx Buffers 0.25 m CMOS technology 3.3V operation with 5V I/O signal tolerance Small 64 Pin LQFP Package Lead-Free Package Commercial Temperature Range from 0 C to 80 C inec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Block Diagram
inec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Table of Contents
Description ...................................................................................................................3 Features ......................................................................................................................3 Block Diagram ...............................................................................................................4 Table of Contents............................................................................................................5 1. Pin Assignment ........................................................................................................7 1.1. 1.2. 1.3. 1.4. 2. 3. MII Signal Description .....................................................................................8 MCU Interface Signal Description .......................................................................9 Miscellaneous Signal Description ..................................................................... 10 Power Supply Signal Description ...................................................................... 11
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Memory map ......................................................................................................... 12 W3150 Registers .................................................................................................... 13 3.1. 3.2. Common Registers ...................................................................................... 13 Socket Registers ......................................................................................... 14 Common Registers ...................................................................................... 18 Socket Registers ......................................................................................... 24 Initialization ............................................................................................... 32 Data communication..................................................................................... 32 5.2.1. 5.2.2. 5.2.3. 5.3. TCP UDP IP raw
4.
Register Descriptions ............................................................................................... 18 4.1. 4.2.
5.
Functional Description .............................................................................................. 32 5.1. 5.2.
Usage of PPPoE environment ......................................................................... 44 Direct Bus I/F Mode...................................................................................... 48 Indirect Bus I/F Mode. ................................................................................... 48 MII (Media Independent Interface) .................................................................... 49 Absolute Maximum Ratings ............................................................................ 50 DC Characteristics ....................................................................................... 50 AC Characteristics ....................................................................................... 51 7.3.1. 7.3.2. 7.3.3. 7.3.4. Reset Timing Register/Memory READ Timing Register/Memory WRITE Timing MII(Media Independent Interface) Timing enec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
6.
Application Information ............................................................................................. 48 6.1. 6.2. 6.3.
7.
Electrical Specification .............................................................................................. 50 7.1. 7.2. 7.3.
8. 9.
IR Reflow Temperature Profile (Lead-Free)...................................................................... 56 Package Description ................................................................................................ 57
enec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
1. Pin Assignment
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
TXD[3]
TXD[2]
TXD[1] 50
64 /RESET VCC GND TEST A[14] A[13] A[12] A[11] A[10] A[9] A[8] TEST GND A[7] A[6] A[5] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
63
62
61
60
59
58
57
56
55
54
53
52
51
49 48 47 46 45 44 43 COL CRS RXC GND RXDV RXD[3] RXD[2] RXD[1] RXD[0] VCC VCC AVIN GND CLOCK /FDPLX PLOCK
W3150
64 LQFP
TXD[0] 42 41 40 39 38 37 36 35 34 33 32 D[0]
VOUT
18
19
20
21
22 VCC
23 GND
24
25
26
27
28
TXEN
TEST
GND
VCC
TXC
/WR
/INT
/RD
/CS
NC
NC
29
30
31
D[7]
D[6]
D[5]
D[4]
D[3]
D[2]
D[1]
A[4]
A[3]
A[2]
A[1]
A[0]
VIN
enec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
1.1. MII Signal Description
Pin# Signal I/O Transmit Clock 55 TXC I This pin provides a continuous clock as a timing reference for TXD[3:0] and TXEN. TXC is sourced by the PHY. TXC is 2.5 MHz in 10BASET Nibble mode, and 25 MHz in 100BASETX Nibble mode. Transmit Enable This output signal indicates the presence of a valid nibble data on TXD[3:0]. It 53 TXEN O becomes active when the first nibble data of the packet is valid on TXD[3:0] and goes low after the last nibble data of the packet is clocked out of TXD[3:0]. This signal connects directly to the PHY device. This signal is active high. 52 51 50 49 TXD[3] TXD[2] TXD[1] TXD[0] Receive Clock 46 RXC I This pin provides a continuous clock reference for RXDV and RXD[3:0] signals. RXC is sourced by the PHY. RXC is 2.5 MHz in 10BASET Nibble mode, and 25 MHz in 100BASETX Nibble mode. Collision Detect 48 COL I This pin becomes active when a collision has been detected in Half Duplex modes. This signal is asynchronous, active high and ignored during fullduplex operation. This signal is active high. 47 CRS I Carrier Sense This pin indicates that carrier is present. This signal is active high. Receive Data Valid 44 RXDV I This signal is asserted high when received data is present on the RXD[3:0] pins; the signal is deasserted at the end of the packet. The signal is valid on the rising of the RXC. 43 42 41 40 RXD[3] RXD[2] RXD[1] RXD[0] I Receive Data These pins receive Nibble NRZ data from the PHY device synchronously with RXC when RXDV is asserted. O Transmit Data These pins provide Nibble NRZ data to the PHY synchronously with TXC when TXEN is asserted. Description
enec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
1.2. MCU Interface Signal Description
Pin# Signal I/O RESET 1 /RESET I Active Low input that initializes or re-initializes W3150. Asserting this pin low for at least 125us will force a reset process to occur which will result in all internal registers re-initializing to their default states. CLOCK This pin is the Primary clock required for internal operation of W3150. In general, PHY driving clock can be shared for saving cost. 25MHz is required. 35 CLOCK I Note) Sharing crystal source clock with multiple devices may cause some troubles. In our reference design, we used one crystal for both PHY and W3150 with verification. But for other kind of PHY, please confirm safety prior to decision. 5:11 14:21 24:27, 29:32 A[14:8] A[7:0] D[7:4] D[3:0] I ADDRESS PINS These pins are used to select a register or memory. DATA PINS These pins are used to read and write register or memory data. INTERRUPT This pin Indicates that W3150 requires MCU attention after socket 61 /INT O connecting, disconnecting, receiving data or timeout. The interrupt is cleared by reading IR(Interrupt Register) or Sn_IR (Socket nth Interrupt Register). All interrupts are maskable. This signal is active low. CHIP SELECT 64 /CS I Chip Select places for MCU access to internal registers/memory. /WR and /RD select direction of data transfer. This signal is active low. WRITE ENABLE 62 /WR I Strobe from MCU to write an internal register/memory selected by A[14:0]. Data is latched into the W3150 on the rising edge of this input. This signal is active low. READ ENABLE 63 /RD I Strobe from MCU to read an internal register/memory selected by A[14:0]. This signal is active low. Description
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
I/O
cnec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
1.3. Miscellaneous Signal Description
Pin# Signal I/O FULL/HALF DUPLEX SELECT This pin selects Half/Full Duplex operation. 34 /FDPLX I This pin must be externally pulled low (typically x k ) in order to configure the W3150 for Full Duplex operation. Low = Full Duplex High = Half Duplex PLL Lock 33 PLOCK O Internal PLL Lock detector out. When the lock signal is High, W3150 is ready to start. The lock signal always low when the PLL is in setting time. This signal is active high. FACTORY TEST INPUT 4,12,56 TEST I Used to check the chip's internal functions. This should be tied low during normal operation. 59, 60 NC Description
inec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
1.4. Power Supply Signal Description
Pin# 2, 22, 38, 39, 58 28 Signal VCC VIN I/O Description POSITIVE 3.3V SUPPLY PINS 2.5V power input 2.5V power supply 2.5V Analog power input 37 AVIN 2.5V power supply for analog circuit ; should be well decoupled. Refer Figure 1-1. Reference Schematic for Power input. 2.5V power out 57 VOUT Be sure to connect 10uF tantalum capacitor and a 0.1uF capacitor for noise de-coupling. Then connect this pin through a ferrite bead to VIN and AVIN. 3, 13, 23, 36, 45, 54 GND NEGATIVE (GROUND) SUPPLY PINS
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
VIN L3 VOUT + 10uF CP2 C21 0.1uF 2.2uF 4.7uH + 0.1uF CP3 C22 AVIN
Figure 1-1. Reference Schematic for Power input
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
2. Memory map
W3150 is composed of Common Register, Socket Register, TX Memory, and RX Memory. Each fields are shown as below.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
0x0000 0x0030
Common Registers
Not Used
0x0400
Socket Registers
0x0800
Not Used
0x6000
TX memory
0x8000
RX memory
0xA000
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
3. W3150 Registers
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
3.1. Common Registers
Address 0x0000 Register Mode (MR) Gateway Address 0x0001 0x0002 0x0003 0x0004 (GAR0) (GAR1) (GAR2) (GAR3) Subnet mask Address 0x0005 0x0006 0x0007 0x0008 (SUBR0) (SUBR1) (SUBR2) (SUBR3) Source Hardware Address 0x0009 0x000A 0x000B 0x000C 0x000D 0x000E (SHAR0) (SHAR1) (SHAR2) (SHAR3) (SHAR4) (SHAR5) Source IP Address 0x000F 0x0010 0x0011 0x0012 0x0013 0x0014 0x0015 0x0016 (SIPR0) (SIPR1) (SIPR2) (SIPR3) Type Of Service of IP (TOSR) Time To Live of IP (TTLR) Interrupt (IR) Interrupt Mask (IMR) Retry Time 0x0017 0x0018 0x0019 (RTR0) (RTR1) Retry Count (RCR) 0x002E 0x002F 0x0030 ~ 0x03FF Reserved 0x002A 0x002B 0x002C 0x002D 0x001C 0x001D 0x001E ~ 0x0029 Unreachable IP Address (UIPR0) (UIPR1) (UIPR2) (UIPR3) Unreachable Port (UPORT0) (UPORT1) Reserved Address 0x001A 0x001B Register RX Memory Size (RMSR) TX Memory Size (TMSR) Authentication Type in PPPoE (PATR0) (PATR1)
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
3.2. Socket Registers
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Address 0x0400 0x0401 0x0402 0x0403 Register Socket 0 Mode (S0_MR) Socket 0 Command (S0_CR) Socket 0 Interrupt (S0_IR) Socket 0 Socket Status (S0_SSR) Socket 0 Source Port 0x0404 0x0405 (S0_PORT0) (S0_PORT1) Socket 0 Destination Hardware Address (S0_DHAR0) 0x0406 0x0407 0x0408 0x0409 0x040A 0x040B Socket 0 Destination IP Address 0x040C 0x040D 0x040E 0x040F (S0_DIPR0) (S0_DIPR1) (S0_DIPR2) (S0_DIPR3) Socket 0 Destination Port 0x0410 0x0411 (S0_DPORT0) (S0_DPORT1) Socket 0 Maximum Segment Size 0x0412 0x0413 (S0_MSSR0) (S0_MSSR1) Socket 0 Protocol in IP Raw mode 0x0414 (S0_PROTO) 0x042A 0x042B 0x042C ~ 0x04FF Reserved 0x0428 0x0429 (S0_DHAR1) (S0_DHAR2) (S0_DHAR3) (S0_DHAR4) (S0_DHAR5) 0x0426 0x0427 0x0424 0x0425 0x0422 0x0423 0x0420 0x0421 Address 0x0415 ~ 0x041F Socket 0 TX Free Size (S0_TX_FSR0) (S0_TX_FSR1) Socket 0 TX Read Pointer (S0_TX_RR0) (S0_TX_RR1) Socket 0 TX Write Pointer (S0_TX_WR0) (S0_TX_WR1) Socket 0 RX Received Size (S0_RX_RSR0) (S0_RX_RSR0) Socket 0 RX Read Pointer (S0_RX_RR0) (S0_RX_RR1) Socket 0 RX Write Pointer (S0_RX_WR0) (S0_RX_WR1) Reserved Register
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Address 0x0500 0x0501 0x0502 0x0503
Register Socket 1 Mode (S1_MR) Socket 1 Command (S1_CR) Socket 1 Interrupt (S1_IR) Socket 1 Socket Status (S1_SSR) Socket 1 Source Port
Address 0x0515 ~ 0x051F
Register
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Reserved
Socket 1 TX Free Size 0x0520 0x0521 (S1_TX_FSR0) (S1_TX_FSR1) Socket 1 TX Read Pointer 0x0522 0x0523 (S1_TX_RR0) (S1_TX_RR1) Socket 1 TX Write Pointer 0x0524 0x0525 (S1_TX_WR0) (S1_TX_WR1) Socket 1 RX Received Size 0x0526 0x0527 (S1_RX_RSR0) (S1_RX_RSR0) Socket 1 RX Read Pointer 0x0528 0x0529 (S1_RX_RR0) (S1_RX_RR1) Socket 1 RX Write Pointer 0x052A 0x052B 0x052C ~ 0x05FF Reserved (S1_RX_WR0) (S1_RX_WR1)
0x0504 0x0505
(S1_PORT0) (S1_PORT1) Socket 1 Destination Hardware Address (S1_DHAR0)
0x0506 0x0507 0x0508 0x0509 0x050A 0x050B
(S1_DHAR1) (S1_DHAR2) (S1_DHAR3) (S1_DHAR4) (S1_DHAR5)
Socket 1 Destination IP Address 0x050C 0x050D 0x050E 0x050F (S1_DIPR0) (S1_DIPR1) (S1_DIPR2) (S1_DIPR3) Socket 1 Destination Port 0x0510 0x0511 (S1_DPORT0) (S1_DPORT1) Socket 1 Maximum Segment Size 0x0512 0x0513 (S1_MSSR0) (S1_MSSR1) Socket 1 Protocol in IP Raw mode 0x0514 (S1_PROTO)
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Address 0x0600 0x0601 0x0602 0x0603
Register Socket 2 Mode (S2_MR) Socket 2 Command (S2_CR) Socket 2 Interrupt (S2_IR) Socket 2 Socket Status (S2_SSR) Socket 2 Source Port
Address 0x0615 ~ 0x061F
Register
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Reserved
Socket 2 TX Free Size 0x0620 0x0621 (S2_TX_FSR0) (S2_TX_FSR1) Socket 2 TX Read Pointer 0x0622 0x0623 (S2_TX_RR0) (S2_TX_RR1) Socket 2 TX Write Pointer 0x0624 0x0625 (S2_TX_WR0) (S2_TX_WR1) Socket 2 RX Received Size 0x0626 0x0627 (S2_RX_RSR0) (S2_RX_RSR0) Socket 2 RX Read Pointer 0x0628 0x0629 (S2_RX_RR0) (S2_RX_RR1) Socket 2 RX Write Pointer 0x062A 0x062B 0x062C ~ 0x06FF Reserved (S2_RX_WR0) (S2_RX_WR1)
0x0604 0x0605
(S2_PORT0) (S2_PORT1) Socket 2 Destination Hardware Address (S2_DHAR0)
0x0606 0x0607 0x0608 0x0609 0x060A 0x060B
(S2_DHAR1) (S2_DHAR2) (S2_DHAR3) (S2_DHAR4) (S2_DHAR5)
Socket 2 Destination IP Address 0x060C 0x060D 0x060E 0x060F (S2_DIPR0) (S2_DIPR1) (S2_DIPR2) (S2_DIPR3) Socket 2 Destination Port 0x0610 0x0611 (S2_DPORT0) (S2_DPORT1) Socket 2 Maximum Segment Size 0x0612 0x0613 (S2_MSSR0) (S2_MSSR1) Socket 2 Protocol in IP Raw mode 0x0614 (S2_PROTO)
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Address 0x0700 0x0701 0x0702 0x0703
Register Socket 3 Mode (S3_MR) Socket 3 Command (S3_CR) Socket 3 Interrupt (S3_IR) Socket 3 Socket Status (S3_SSR) Socket 3 Source Port
Address 0x0715 ~ 0x071F
Register
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Reserved
Socket 3 TX Free Size 0x0720 0x0721 (S3_TX_FSR0) (S3_TX_FSR1) Socket 3 TX Read Pointer 0x0722 0x0723 (S3_TX_RR0) (S3_TX_RR1) Socket 3 TX Write Pointer 0x0724 0x0725 (S3_TX_WR0) (S3_TX_WR1) Socket 3 RX Received Size 0x0726 0x0727 (S3_RX_RSR0) (S3_RX_RSR0) Socket 3 RX Read Pointer 0x0728 0x0729 (S3_RX_RR0) (S3_RX_RR1) Socket 3 RX Write Pointer 0x072A 0x072B 0x072C ~ 0x07FF Reserved (S3_RX_WR0) (S3_RX_WR1)
0x0704 0x0705
(S3_PORT0) (S3_PORT1) Socket 3 Destination Hardware Address (S3_DHAR0)
0x0706 0x0707 0x0708 0x0709 0x070A 0x070B
(S3_DHAR1) (S3_DHAR2) (S3_DHAR3) (S3_DHAR4) (S3_DHAR5)
Socket 3 Destination IP Address 0x070C 0x070D 0x070E 0x070F (S3_DIPR0) (S3_DIPR1) (S3_DIPR2) (S3_DIPR3) Socket 3 Destination Port 0x0710 0x0711 (S3_DPORT0) (S3_DPORT1) Socket 3 Maximum Segment Size 0x0712 0x0713 (S3_MSSR0) (S3_MSSR1) Socket 3 Protocol in IP Raw mode 0x0714 (S3_PROTO)
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
4. Register Descriptions
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
4.1. Common Registers
MR (Mode Register) [R/W] [0x0000] [0x00]
1
This Register is used for S/W Reset, memory test mode, ping block mode, PPPoE mode and Indirect bus I/F. 7 RST 6 5 MT 4 PB 3 PPPoE 2 LB 1 AI 0 IND
Bit
Symbol S/W Reset
Description
7
RST
If this bit is 1, internal register will be initialized. It will be automatically cleared with Reset.
6
Reserved
Reserved Memory Test Mode 0 : Disable memory test mode 1 : Enable memory test mode TX memory is used for data transmission. In this memory, only WRITE can be performed.
5
MT
At the RX memory, users can receive data and only READ can be performed. If a user wants to perform both of WRITE and READ in order to check operation status of TX memory and RX memory, the bit should be set as 1. Memory Test Mode is used only for checking of TX/RX memory operation status. For the general usage, Memory Test Mode should be cleared first. Ping Block Mode
4
PB
0 : Disable Ping block 1 : Enable Ping block If the bit is set as 1, there is no response to the Ping request. PPPoE Mode 0 : Disable PPPoE mode 1 : Enable PPPoE mode
3
PPPoE
If you are under the circumstance of PPPoE such as ADSL, you should set the bit as 1, and connect to PPPoE SERVER. For more detail, refer to 5.3 Usage of PPPoE SERVER.
1
[Read/Write] [Address] [Reset value]
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Little-endian / Big-endian ordering in Indirect Bus I/F 0 : Big-endian ordering 2 LB 1 : Little-endian ordering At the Indirect Bus I/F mode, Indirect address Register ordering is decided. For more detail, refer to 6.1.2.Indirect Bus IF Mode. Address Auto-Increment in Indirect Bus I/F 0 : Disable auto-increment 1 AI 1 : Enable auto-increment At the Indirect Bus I/F mode, if this bit is set as 1, the address will automatically increase by 1 whenever Read and Write are performed. For more detail, refer to 6.1.2 Indirect Bus IF Mode. Indirect Bus I/F mode 0 : Disable Indirect bus I/F mode 0 IND 1 : Enable Indirect bus I/F mode If this bit is set as 1, Indirect Bis I/F mode is used. For more detail, refer to 6. Application Information, 6.1.2. Indirect Bus IF Mode.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
GWR (Gateway IP Address Register) [R/W] [0x0001 - 0x0004] [0x00] This Register sets up the default gateway address. Ex) in case of 192.168.0.1 0x0001 192 (0xC0) 0x0002 168 (0xA8) 0x0003 0 (0x00) 0x0004 1 (0x01)
SUBR (Subnet Mask Register) [R/W] [0x0005 - 0x0008] [0x00] This Register sets up the subnet mask address. Ex) in case of 255.255.255.0 0x0005 255 (0xFF) 0x0006 255 (0xFF) 0x0007 255 (0xFF) 0x0008 0 (0x00)
icnec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
SHAR (Source Hardware Address Register) [R/W] [0x0009 - 0x000E] [0x00] This Register sets up the Source Hardware address. Ex) In case of 00.08.DC.01.02.03 0x0009 0x00 0x000A 0x08 0x000B 0xDC 0x000C 0x01 0x000D 0x02 0x000E 0x03
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
SIPR (Source IP Address Register) [R/W] [0x000F - 0x0012] [0x00] This Register sets up the Source IP address. Ex) in case of 192.168.0.3 0x000F 192 (0xC0) 0x0010 168 (0xA8) 0x0011 0 (0x00) 0x0012 3 (0x03)
TOS (IP Type Of Service Register) [R/W] [0x0013] [0x00] This Register sets up at the TOS Field of IP Header.
TTL (IP Time To Live Register) [R/W] [0x0014] [0x80] This Register sets up at the TTL Field of IP Header.
IR (Interrupt Register) [R] [0x0015] [0x00] This Register is accessed by the host processor to know the cause of an interrupt. Any interrupt can be masked in the Interrupt Mask Register (IMR). The /INT signal retain low as long as any unmasked signal is set, and will not go high until all unmasked bits in this Register have been cleared. 7 CONFLICT 6 UNREACH 5 PPPoE 4 Reserved 3 S3_INT 2 S2_INT 1 S1_INT 0 S0_INT
Bit
Symbol IP Conflict
Description
7
CONFLICT
It is set as 1, when there is ARP request with same IP address as Source IP address. This bit is cleared to 0 only with Read action. Destination unreachable W3150 will receive ICMP(Destination Unreachable) packet if not-existing Destination IP address is transmitted during UDP data transmission. (Refer to 5.2.2. UDP). In this case,
6
UNREACH
the IP address and Port number will be saved in Unreachable IP Address (UIPR) and Unreachable Port Register (UPORT), and the bit will be set as 1. This bit will be cleared to 0 only with Read action.
inec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
PPPoE Close 5 PPPoE In the PPPoE Mode, if the PPPoE connection is closed, 1 is set. This bit will be cleared to 0 only with Read action. 4 Reserved Reserved Occurrence of Socket 3 Socket Interrupt 3 S3_INT It is set in case that interrupt occurs at the socket 3. For more detailed information of socket interrupt, refer to Socket 3 Interrupt Register(S3_IR). This bit will be automatically cleared when S3_IR is cleared to 0x00. Occurrence of Socket 2 Socket Interrupt 2 S2_INT It is set in case that interrupt occurs at the socket 2. For more detailed information of socket interrupt, refer to Socket 2 Interrupt Register(S2_IR). This bit will be automatically cleared when S2_IR is cleared to 0x00. Occurrence of Socket 1 Socket Interrupt 1 S1_INT It is set in case that interrupt occurs at the socket 1. For more detailed information of socket interrupt, refer to Socket 1 Interrupt Register(S1_IR). This bit will be automatically cleared when S1_IR is cleared to 0x00. Occurrence of Socket 0 Socket Interrupt 0 S0_INT It is set in case that interrupt occurs at the socket 0. For more detailed information of socket interrupt, refer to Socket 0 Interrupt Register(S0_IR). This bit will be automatically cleared when S0_IR is cleared to 0x00.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
IMR (Interrupt Mask Register) [R/W] [0x0016] [0x00] The Interrupt Mask Register is used to mask interrupts. Each interrupt mask bit corresponds to a bit in the Interrupt Register (IR). If an interrupt mask bit is set, an interrupt will be issued whenever the corresponding bit in the IR is set. If any bit in the IMR is set as 0, an interrupt will not occur though the bit in the IR is set. 7 IM_IR7 6 IM_IR6 5 IM_IR5 4 Reserved 3 IM_IR3 2 IM_IR2 1 IM_IR1 0 IM_IR0
Bit 7 6 5 4 3 2 1
Symbol IM_IR7 IM_IR6 IM_IR5 Reserved IM_IR3 IM_IR2 IM_IR1 IP Conflict Enable Destination unreachable Enable PPPoE Close Enable It should be set as `0'
Description
Occurrence of Socket 3 Socket Interrupt Enable Occurrence of Socket 2 Socket Interrupt Enable Occurrence of Socket 1 Socket Interrupt Enable
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
0
IM_IR0
Occurrence of Socket 0 Socket Interrupt Enable
RTR (Retry Time-value Register) [R/W] [0x0017 - 0x0018] [0x07D0] This register sets the period of timeout. Vaule 1 means 100us. The initial value is 2000(0x07D0). That will be set as 200ms. Ex) For 400ms configuration, set as 4000(0x0FA0) 0x0017 0x0F 0x0018 0xA0
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Re-transmission will occur when there is no response from the remote peer to the commands of CONNECT, DISCON, CLOSE, SEND, SEND_MAC and SEND_KEEP, or the response is delayed.
RCR (Retry Count Register) [R/W] [0x0019] [0x08] This register sets the number of re-transmission. If retransmission occurs more than recorded number, Timeout Interrupt (TIMEOUT bit of Socket n Interrupt Register (Sn_IR) is set as 1) will occur.
RMSR(RX Memory Size Register) [R/W] [0x001A] [0x55] This register assigns total 8K RX Memory to the socket. 7 Socket 3 S1 S0 S1 6 5 Socket 2 S0 S1 4 3 Socket 1 S0 S1 2 1 Socket 0 S0 0
The memory size according to the configuration of S1, S0, is as below. S1 0 0 1 1 S0 0 1 0 1 Memory size 1KB 2KB 4KB 8KB
Accoridng to the value of S1 and S0, the memory is assigned to the sockets from socket 0 within the range of 8KB. If there is not enough memory to be assigned, the socket should not be used. The initial value is 0x55 and the memory is assined to 4 sockets respectively with 2K. Ex) When setting as 0xAA, the memory should be assigned to each socket with 4KB. However, the total memory size is 8KB. The memory is normally assigned to the socket 0 and 1, but not to the socket 2 and 3. Therefore, user should not use socket 2 and 3 absolutely. Socket 3 0KB Socket 2 0KB Socket 1 4KB Socket 0 4KB
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
TMSR(TX Memory Size Register) [R/W] [0x001B] [0x55] This register is used in assigning total 8K TX Memory to sockets. Configuration can be done in the same way of RX Memory Size Register (RMSR). The initial value is 0x55 and assined to 4 socketes respectively with 2K.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
PATR (Authentication Type in PPPoE mode) [R] [0x001C-0x001D] [0x0000] This register notifies authentication method that has been agreed at the connection with PPPoE Server. W3150 supports only two ways of PAP and CHAP. Value 0xC023 0xC223 Authentication Type PAP CHAP
For more detail, refer to 5.3. Usage of PPPoE environment.
UIPR (Unreachable IP Address Register) [R] [0x002A - 0x002D] [0x00] In case of data transmission by using UDP (refer to 5.2.2. UDP), if transmitting to not-existing IP address, ICMP (Destination Unreachable) packet will be received. In this case, that IP address and Port number will be respectively saved in the Unreachable IP Address Register(UIPR) Register(UPORT). Ex) in case of 192.168.0.11, 0x002A 192 (0xC0) 0x002B 168 (0xA8) 0x002C 0 (0x00) 0x002D 11 (0x0B) and Unreachable Port
UPORT (Unreachable Port Register) [R] [0x002E - 0x002F] [0x0000] Refer to Unreachable IP Address Register (UIPR) Ex) In case of 5000(0x1388), 0x002E 0x13 0x002F 0x88
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
4.2. Socket Registers
Sn _MR (Socket n Mode Register) [R/W] [0x0400, 0x0500, 0x0600, 0x0700] [0x00] This Register sets up socket option or protocol of the corresponding Socket. 7 6 5
ND
2 3
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
4
ZC
3 P3
2 P2
1 P1
0 P0
Bit 7 6
Symbol Reserved Reserved Reserved Reserved Use No Delayed ACK
Description
0 : disable No Delayed ACK, 1 : enable No delayed ACK 5 ND It is applied only in case of TCP. If this bit is set as 1, ACK packet is transmitted whenver receiving data packet from the peer. If this bit is cleared to 0, ACK packet is transmitted according to internal Timeout mechanism. Zero Chksum Enable 0 : disable Zero Chksum, 1 : enable Zero Chksum 4 ZC It is applied only in case of UDP. If this bit is set as 1, when the check sum of received UDP packets is correct or 0x00, receiving is normally processed. If this bit is cleared to 0, receiving is normally processed when check sum is correct. Protocol 3 P3 Sets up corresponding Socket as TCP, UDP, IP RAW mode P3 0 2 P2 0 0 1 P1 0 P2 0 0 0 0 P1 0 0 1 1 P0 0 1 0 1 Closed TCP UDP IP Raw Meaning
* In case of socket 0, more MAC RAW and PPPoE mode exist. P3 0 P0 0 0 P2 1 1 P1 0 0 P0 0 1 Meaning MAC Raw PPPoE
2 3
n is socket number (0, 1, 2, 3). [Read/Write] [address of socket 0, address of socket 1, address of socket 2, address of socket 3] [Reset value]
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Sn_CR (Socket n Command Register) [R/W] [0x0401, 0x0501, 0x0601, 0x0701] [0x00] This register utilized for socket initialization, close, connection establishiment, connection termination, data transmitting and receiving commands. After performing the commands, the register value will be automatically cleared to 0x00. Value Symbol Description It is used to initialize the socket. According to the vaule of Socket n Mode 0x01 OPEN Register(Sn_MR), Socket n Status Register(Sn_SSR) value is changed to SOCK_INIT, SOCK_UDP, SOCK_IPRAW. For more detail, refer to 5. Functional Description. It is only used in TCP mode. 0x02 LISTEN It changes the value of Socket n Status Register(Sn_SSR) to SOCK_LISTEN in order to wait for a connection request from any remote peer (Client). For more detail, refer to 5.2.1.1. SERVER. It is only used in TCP mode. 0x04 CONNECT It sends a connection request to remote peer(SERVER). If the connection is failed, Timeout interrupt will occur. For more detail, refer to 5.2.1.2. CLIENT. It is only used in TCP mode. It sends connection termination request. If connection termination is failed, Timeout interrupt will occur. 0x08 DISCON For more detail, refert to 5.2.1.1. SERVER. * In case of using CLOSE command instead of DISCON, only the value of Socket n Status Register(Sn_SSR) is changed to SOCK_CLOSED without the connection termination process. 0x10 CLOSE It is used to close the socket. It changes the vaule of Socket n Status Register(Sn_SSR) to SOCK_CLOSED. It transmits the data as much as the increased size of Socket n TX Write Pointer. 0x20 SEND For more detail, refert to Socket n TX Free Size Register (Sn_TX_FSR), Socket n TX Write Pointer Register(Sn_TX_WR), and Socket n TX Read Pointer Register(Sn_TX_RR) or 5.2.1.1. SERVER. It is used in UDP mode. The basic operation is same as SEND. Normally SEND operation is needed Destination Hardware Address that is received in 0x21 SEND_MAC ARP(Address Resolution Protocol) process. But SEND_MAC uses Socket n Destination Hardware Address(Sn_DHAR) that is written by users without ARP process.
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
It is only used in TCP mode. 0x22 SEND_KEEP It checks the connection by sending 1byte data previously. If the connection is already terminated or Peer has no response, Timeout interrupt will occur. Receiving is processed including the value of Socket n RX Read Pointer Register(Sn_RX_RR). 0x40 RECV For more detail, refer to Socket n RX Received Size Register (Sn_RX_RSR), Socket n RX Write Pointer Register(Sn_RX_WR), and Socket n RX Read Pointer Register(Sn_RX_RR) or 5.2.1.1. SERVER
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Sn_IR (Socket n Interrupt Register) [R] [0x0402, 0x0502, 0x0602, 0x0702] [0x00] This register is used for notifying connection establishment and termination, receiving data and Timeout. The values are cleared by reading this register. 7 Reserved 6 Reserved 5 Reserved 4 Reserved 3
TIMEOUT
2 RECV
1
DISCON CON
0
Bit 7 6 5 4 3 2 1 0
Symbol Reserved Reserved Reserved Reserved TIMEOUT Reserved Reserved Reserved Reserved
Description
It is set as 1 if Timeout occurs during connection establishment or termination and data transmission.
RECV DISCON
It is set as 1 if data is received. It is set as 1 if receive connection termination request or if connection termination is finished.
CON
It is set as 1 if connection is established.
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Sn_SR (Socket n Status Register) [R] [0x0403, 0x0503, 0x0603, 0x0703] [0x00] This register has the status vaule of socket. The main status is shown in the below diagram.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Value 0x00
Symbol SOCK_CLOSED
Description In case that OPEN commands are given to Sn_CR, Timeout interrupt is asserted or connection is terminated.
0x13
SOCK_INIT
In case that Sn_MR is set as TCP and OPEN commands are given to Sn_CR.
0x14
SOCK_LISTEN
In case that under the SOCK_INIT status, LISTEN commands are given to Sn_CR.
0x17 0x1C
SOCK_ESTABLISHED SOCK_CLOSE_WAIT
In case that connection is established. In case that connection termination request is received.
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
0x22
SOCK_UDP
In case that OPEN commands are given to Sn_CR when Sn_MR is set as UDP.
0x32
SOCK_IPRAW
In case that OPEN commands are given to Sn_CR when Sn_MR is set as IPRAW.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Below is shown in the status change, and does not need much attention. Value 0x15 Symbol SOCK_SYNSENT Description It is shown in case that CONNECT commands are given to Socket n Command Register(Sn_CR) at the SOCK_INIT status. It is automatically changed to SOCK_ESTABLISH when the connection is established. 0x16 SOCK_SYNRECV It is shown in case that connection request is received from remote peer(CLIENT). It normally responds to the requests and changes to SOCK_ESTABLISH. 0x18 0x19 0x1A 0X1B 0X1D 0x11 0x21 0x31 SOCK_FIN_WAIT1 SOCK_FIN_WAIT2 SOCK_CLOSING SOCK_TIME_WAIT SOCK_LAST_ACK SOCK_ARP It is shown when ARP Request is sent in order to acquire Hardware Address of remote peer when it sends connection request in TCP mode or sends data in UDP mode. If ARP Reply is received, it changes to the status, SOCK_SYNSENT, SOCK_UDP or SOCK_ICMP, for next operation. It is shown in the process of connection termination. If the termination is normally processed or Timeout interrupt is asserted then automatically changed to SOCK_CLOSED.
Sn_PORT (Socket n Source Port Register) [R/W] [0x0404-0x0405, 0x0504-0x0505, 0x0604-0x0605, 0x0704-0x0705] [0x00] This Register sets the Source Port number for each Socket when using TCP or UDP mode, and the set-up needs to be made before executing the OPEN Command. Ex) In case of Socket 0 Port = 5000(0x1388), configure as below, 0x0404 0x13 0x0405 0x88
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Sn_DHAR (Socket n Destination Hardware Address Register) [R/W] [0x0406-0x040B, 0x0506-0x050B, 0x0606-0x060B, 0x0706-0x070B] [0x00] This Register sets the Destination Hardware address of each Socket. Ex) In case of Socket 0 Hardware address = 08.DC.00.01.02.10, configuration is as below, 0x0406 0x08 0x0407 0xDC 0x0408 0x00 0x0409 0x01 0x040A 0x02 0x040B 0x0A
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Sn_DIPR (Socket n Destination IP Address Register) [R/W] [0x040C-0x040F, 0x050C-0x050F, 0x060C- 0x060F, 0x070C-0x070F] [0x00] This Register sets the Destination IP Address of each Socket to be used in setting the TCP connection. active mode, IP address needs to be set before executing the Connect command. sets up the connection and then updates with peer IP internally. Ex) In case of Socket 0 Destination IP address = 192.168.0.11, configure as below. 0x040C 192 (0xC0) 0x040D 168 (0xA8) 0x040E 0 (0x00) 0x040F 11 (0x0B) In In passive mode, W3150
Sn_DPORT (Socket n Destination Port Register) [R/W] [0x0410-0x0411, 0x0510-0x0511, 0x0610- 0x0611, 0x0710-0x0711] [0x00] This Register sets the Destination Port number of each Socket to be used in setting the TCP connection. In active mode, port number needs to be set before executing the Connect command. W3150 sets up the connection and then updates with peer port number internally. Ex) In case of Socket 0 Destination Port = 5000(0x1388), configure as below, 0x0410 0x13 0x0411 0x88 In passive mode,
Sn_MSS (Socket n Maximum Segment Size Register) [R/W] [0x0412-0x0413, 0x0512-0x0513, 0x06120x0613, 0x0712-0x0713] [0x00] This Register is used for MSS (Maximum Segment Size) of TCP, and the Register displays MSS set by the other party when TCP is activated in Passive Mode. Ex) In case of Socket 0 MSS = 1460(0x05B4), configure as below, 0x0412 0x05 0x0413 0xB4
icnec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Sn_PROTO (Socket n IP Protocol Register) [R/W] [0x0414, 0x0514, 0x0614, 0x0714] [0x00] This IP Protocol Register is used to be set up the Protocol Field of IP Header when executing the IP Layer RAW Mode. There are several protocol numbers defined in advance by registering to IANA. For the overall list of upper level protocol idenentification number that IP is using, refer to online documents of IANA (http://www.iana.org/assignments/protocol-numbers). Ex) Internet Control Message Protocol (ICMP) = 0x01, Internet Group Management Protocol = 0x02
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Sn_TX_FSR (Socket n TX Free Size Register) [R] [0x0420-0x0421, 0x0520-0x0521, 0x0620-0x0621, 0x0720-0x0721] [0x0800] This regiser notifies the information of data size that user can transmit. For data transmission, user should check this value first and control the size of transmitting data. When checking this register, user should read upper byte first and lower byte later to get the correct value. Total size can be decided according to the value of TX Memory Size Regster. In the process of transmission, it reduces by the size of transmitting data, and automatically increases after transimission finished.
Sn_TX_RR (Socket n TX Read Pointer Register) [R] [0x0422-0x0423, 0x0522-0x0523, 0x0622-0x0623, 0x0722-0x0723] [0x0000] This register shows the addres that transmission is finished at the TX Memory. With the SEND command of Socket n Command Register, it transmits data from current Sn_TX_RR to Sn_TX_WR and automatically changes after transmission is finished. Therefore, after transmission is finished, Sn_TX_RR and Sn_TX_WR will have same value. When checking this register, read uppder byte first and lower byte later to get the proper value.
Sn_TX_WR (Socket n TX Write Pointer Register) [R/W] [0x0424-0x0425, 0x0524-0x0525, 0x06240x0625, 0x0724-0x0725] [0x0000] This register means the address to write next data to transmit. It is used during data transmission. User can write the data to transmit from this address. However, only with the data write operation, it is not possible to know the data size to transmit internally. So, increase the register value as much as the already written data size, and give SEND command to Socket n Command Register. When checking this register, read the upper byte first and lower byte later to get the correct value. If data is just written in the TX Memory, but the value of register is not increased, data transmission does not occur even with SEND command to Sn_CR.
inec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Sn_RX_RSR (RX Received Size Register) [R] [0x0426-0x0427, 0x0526-0x0527, 0x0626-0x0627, 0x07260x0727] [0x0000] This register notifies the data size received in RX Memory. As this value is internally calculated with the values of Sn_RX_RR and Sn_RX_WR, it is automatically changed by RECV command of Socket n Command Register(Sn_CR) and receiving data for remote peer. When checking this register, read the upper byte first and lower byte later to get the correct value. The total size of this value can be decided according to the value of RX Memory Size Register.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Sn_RX_RR (Socket n RX Read Pointer Register) [R/W] [0x0428-0x0429, 0x0528-0x0529, 0x06280x0629, 0x0728-0x0729] [0x0000] This register indicates start address of received data. It is used during data receiving process. User can read the received data and process it from this address. However, only with data read operation, it is not possible to know if receiving has been internally proceeded or not. So, after reading data, increase the register value as much as reading data size, and give RECV command to Socket n Command Register(Sn_CR). When checking this register, read upper byte first and lower byte later to get the correct value. When increasing as much as receving data size, do not increase more than received data size. Check received size (Sn_RX_RSR) first for the process.
Sn_RX_WR (Socket n RX Write Pointer Register) [R] [0x042A-0x042B, 0x052A-0x052B, 0x062A0x062B, 0x072A-0x072B] [0x0000] This register indicates the last address of received data in RX Memory. Internally, this value is automatically changed by receiving data from remote peer. In case the receiving process is normally processed, Sn_RX_RR and Sn_RX_WR will have same value. When checking this register, read the upper byte first and lower byte later to get the correct value.
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
5. Functional Description
By setting some register and memory operation, W3150 provides internet connectivity. This chapter describes how it can be operated.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
5.1. Initialization
Below register is for basic network configuration information to be configured according to the network environment. 1. Gateway Address Register (GAR) 2. Source Hardware Address Register (SHAR) 3. Source IP Address Register (SIPR) 4. Subnet Mask Register (SUBR) The Source Hardware Address Regiter (SHAR) is the H/W address to be used in MAC layer, and can be used with the address that manufacturer has been assigned. The MAC address can be assigned from IEEE. For more detail, refer to IEEE homepage.
5.2. Data communication
Data communication is available through TCP or UDP. In order to select it, configure protocol field of Socket n Mode Register(Sn_MR) of the commnucation sockets (W3150 supports total 4 sockets) as TCP(0x01) or UDP(0x02).
5.2.1.
TCP
TCP is connection oriented communication method that will establish connection in advance and deliver the data through the connection by using IP Address and Port number of the systems. There are two methods to establish the connection. One is SERVER mode(passive open) that is waiting for connection request. The other is CLIENT mode(active open) that sends connection request to SERVER.
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
5.2.1.1.
SERVER mode
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Socket Initialization It initializes the socket as TCP, 1. It sets protocol field of Socket n Mode Register (Sn_MR) as TCP (0x01). 2. It sets user defined value at the Socket n Source Port Register (Sn_PORT). 3. Set the OPEN value to Socket n Command Register (Sn_CR). 4. Check if the value of Socket n Socket Status Register(Sn_SSR) is SOCK_INIT or not. If not, Set the CLOSE value to Socket n Command Register (Sn_CR), and try from the first.
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
LISTEN In order to wait for a connection request. 1. Set the LISTEN value to Socket n Command Register(Sn_CR). 2. Check if the value of Socket n Socket Status Register(Sn_SSR) is SOCK_LISTEN or not. If not, go back to the Socket Initialization step.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
ESTABLISHED ? If received connection request of remote peer (the stauts of SOCK_SYNRECV), W3150 sends ACK packet and changes to SOCK_ESTABLISHED status. This status can be checked as below. Check if CON bit value of Socket n Interrupt Register(Sn_IR) is 1. (In this case, if the interrupt of Socket n is activated, interrupt occurs. Refer to Interrupt Register (IR), Interrupt Mask Register (IMR) and Socket n Interrupt Register (Sn_IR).) Or Check if the value of Socket n Socket Status Register(Sn_SSR) is SOCK_ESTABLISHED.
As connection is established, data transmission and receipt can be performed. ESTABLISHED : Received Data ? Check as below to know if data is received from remote peer or not. Check if the value of Socket n RX Received Size Register(Sn_RX_RSR) is 0x00. Or Check if RECV bit value of Socket n Interrupt Register(Sn_IR) is 1. (In this case if the interrupt of Socket n is activated, interrupt occurs. Refer to Interrupt Register (IR), Interrupt Mask Register (IMR), Socket n Interrupt Register (Sn_IR).)
ESTABLISHED : Receving Process Recevied data can be processed as below. 1. Read the value of Socket n RX Received Size Register(Sn_RX_RSR) and find out the size of received data. 2. Read the value of Socket n RX Read Pointer Register(Sn_RX_RR) and find out starting address of received data. 3. With the information of above 1 and 2, read received data in the RX Memory. 4. Increase the value of Socket n RX Read Pointer Register(Sn_RX_RR) to the size of above 1. 5. Give RECV command to Socket n Command Register(Sn_CR) for receving next data.
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
ESTABLISHED : Send DATA ? / Sending Process The sending procedure is as below. 1. Read the vaule of Socket n TX Free Size Register (Sn_TX_FSR) and find out receivable TX Memory free size. If Sn_TX_FSR is 0, user should wait for a while and then retry it. 2. Read the value of Socket n TX Write Pointer Register (Sn_TX_WR) and find out starting address to write the data to send. 3. With the information of above 1 and 2, write the data to transmit to TX Memory. The size of transmitting data should not be larger than the value of Socket n TX Free Size Register (Sn_TX_FSR) of above 1. 4. Increase Socket n TX Write Pointer Register(Sn_TX_WR) as much as the size of sent data. 5. Go to the next step when the value of Socket n Command Register(Sn_CR) becomes 0x00. It is the process to check if previous SEND command is on performing. 6. Give SEND commands to Socket n Command Register(Sn_CR).
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
ESTABLISHED : Received FIN? Waiting for a connection termination request from remote peer. It can be checked as below if it received connection termination request of remote peer. Check if DISCON value of Socket n Interrupt Register(Sn_IR) is 1. (In this case if the interrupt of Socket n is activated, interrupt occurs. Refer to Interrupt Register (IR), Interrupt Mask Register (IMR), Socket n Interrupt Register (Sn_IR).) Or Check if the value of Socket n Socket Status Register(Sn_SSR) is SOCK_CLOSE_WAIT.
ESTABLISHED : Disconnect ? / Disconnecting Process Check if user requests to terminate this connection. To terminate the connection, proceed as below, 1. Give DISCON commands to Socket n Command Register(Sn_CR).
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
ESTABLISHED : CLOSED ? No connection state at all. It can be checked as below, Check if DISCON value of Socket n Interrupt Register(Sn_IR) is 1. (In this case if the interrupt of Socket n is activated, interrupt occurs. Refer to Interrupt Register (IR), Interrupt Mask Register (IMR), Socket n Interrupt Register (Sn_IR).) Or Check if the value of Socket n Socket Status Register(Sn_SSR) is SOCK_CLOSED.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
ESTABLISHED : Timeout In case that connection is closed due to the error of remote peer during data receving or connection closing process, data transmission can not be normally processed. At this time Timeout occurs after some time. 1. Check if TIMEOUT bit value of Socket n Interrupt Register(Sn_IR) is 1 . (In this case, if interrupt of Socket n is activated, interrupt occurs Refer to Interrupt Register (IR), Interrupt Mask Register (IMR), and Socket n Interrupt Register.)
Socket Close This process should be processed in case that connection is closed after data exchage, socket should be closed with Timeout occurrence, or forcible disconnection is necessary due to abonormal operation. 1. Give CLOSE commands to Socket n Command Register(Sn_CR).
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
5.2.1.2.
CLIENT mode
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Whole process is shown as below.
Socket Initialization Refer to 5.2.1.1 SERVER (The operation is same as SERVER). CONNECT Sends connection request to remote HOST(SERVER) is as below. 1. Write the value of IP Address and Port of remote peer(SERVER) to the Socket n Destination IP Address Register(Sn_DIPR), Socket n Destination Port Register(Sn_DPORT). 2. Give CONNECT command to the Socket n Command Register(Sn_CR).
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
ESTABLISHED ? The connection is established. It can be checked as below, Check if CON bit value of Socket n Interrupt Register(Sn_IR) is 1 or not. (In this case, if interrupt of Socket n is activated, interrupt occurs. Refer to Interrupt Register (IR), Interrupt Mask Register (IMR), and Socket n Interrupt Register (Sn_IR). Or Check if the value of Socket n Socket Status Register(Sn_SSR) is SOCK_ESTABLISHED.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Timeout Socket is closed as Timeout occurs as there is not response from remote peer. It can be checked as below. Check the value of TIMEOUT bit of Socket n Interrupt Register(Sn_IR) is 1. (In this case, if the interrupt of Socket n is activated, interrupt occurs. Refer to Interrupt Register (IR), Interrupt Mask Register (IMR), Socket n Interrupt Register (Sn_IR).) Or Check if the value of Socket n Socket Status Register(Sn_SSR) is SOCK_CLOSED.
ESTABLISHED Refer to 5.2.1.1. SERVER (The operation is same as SERVER mode)
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
5.2.2.
UDP
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
UDP provides unreliable and connectionless datagram transmission structure. It processes data without connection establishment that TCP does. Therefore, UDP message can be lost, overlapped, reversed. As packets can arrive faster, recipient can not process all of them. In this case, user application should guarantee the reliability of data transmission. UDP transmission can be proceeded as below,
Socket Initialization Initialize the socket as UDP. 1. Set the protocol field of Socket n Mode Register (Sn_MR) as UDP(0x02). 2. Set the user defined value to the Socket n Source Port Register (Sn_PORT).
The value of Source Port can be appropriately delivered when remote HOST knows it.
3. Give OPEN command to Socket n Command Register (Sn_CR). 4. Check if the value of Socket n Socket Status Register(Sn_SSR) is SOCK_UDP. If not, try from the first.
Received DATA? It can be checked as below if data is received from remote peer. Check if the value of Socket n RX Received Size Register (Sn_RX_RSR) is 0x00. Or Check if the RECV value of Socket n Interrupt Register (Sn_IR) is 1. (In this case, if the interrupt of Socket n is activated, interrupt occurs. Refer to Interrupt Register (IR), Interrupt Mask Register (IMR), Socket n Interrupt Register (Sn_IR).)
icnec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Receiving Process Received data can be processed as below. 1. In case of UDP, 8byte header is attached to receiving data. The structure of the header is as below.
IP Address (4) Port (2) Data size (2) (*data size except for 8byte of header)
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
2. Find out data starting address by reading the value of Socket n RX Read Pointer Register(Sn_RX_RR). 3. At the RX Memory, read header information (8byte) from the address of above 2. 4. At the header, find out the IP address, Port, Data size from remote peer. 5. At the RX Memory, read the received data as much as the data size of above 4. The starting address is (value of above 2. + 8). 6. Increase the value of Socket n RX Read Pointer Register(Sn_RX_RR) as much as header size and the data size (value of Data size field + 8). 7. Give RECV command to the Socket n Command Register(Sn_CR) for receiving next data.
Send Data? / Sending Process Data transmission process is as below. 1. Write the IP address and Port information of remost peer on the Socket n Destination IP Address Register(Sn_DIPR), Socket n Destination Port Register(Sn_DPORT). 2. Read the value of Socket n TX Free Size Register(Sn_TX_FSR), and find out TX Memory free size. 3. Read the value of Socket n TX Write Pointer Register(Sn_TX_WR), and find out starting address to write data to transmit. 4. With the information of above 2. and 3, write data to transmit to TX Memory. In this case, transmitting data size should not be larger than the value of Socket n TX Free Size Register(Sn_TX_FSR) of above 1. 5. Increase the value of Socket n TX Write Pointer Register(Sn_TX_WR) as much as the size of transmitting data. 6. Give SEND command to Socket n Command Register(Sn_CR).
Complete Sending? The sending completion should be checked after SEND command. 1. If the value of Socket n Command Register(Sn_CR) becomes 0x00, transmission is completed.
inec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Timeout Timeout occurs if there is not remote peer or data transmission is not proceeded due to abnormal network. It can be checked as below. 1. Check if TIMEOUT bit value of Socket n Interrupt Register(Sn_IR) is 1. (In this case, if the interrupt of Socket n is activated, interrupt occurs. Refer to Interrupt Register (IR), Interrupt Mask Register (IMR), Socket n Interrupt Register (Sn_IR).)
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Finished? / Socket Close If all the actions are finished, close the socket. 1. Give CLOSE commands to Socket n Command Register(Sn_CR).
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
5.2.3.
IP raw
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
IP Raw mode can be utilized if transport layer protocol of some ICMP or IGMP that W3150 does not support, needs to be processed.
Socket Initialization It initializes the socket as IP raw. 1. Set the protocol field of Socket n Mode Register(Sn_MR) as IP raw(0x03). 2. Assign to Socket n IP Protocol Register (Sn_PROTO) the vaule that you want.
The value of Protocol is the value used in Protocol Field of IP Header. For the list of protocol identification number of upper classification, refer to on line documents of IANA (http://www.iana.org/assignments/protocol-numbers).
3. Give OPEN command to Socket n Command Register(Sn_CR). 4. Check if the value of Socket n Socket Status Register(Sn_SSR) is SOCK_IPRAW. If not, try from the first.
Received DATA? It can be checked as below if data is received from remote peer. Check the value of Socket n RX Received Size Register(Sn_RX_RSR) is 0x00 or not. Or Check the RECV bit vaule of Socket n Interrupt Register(Sn_IR) is 1 or not (If interrupt of Socket n is activated, interrupt will occur. Refer to Interrupt Register (IR), Interrupt Mask Register (IMR), and Socket n Interrupt Register (Sn_IR).
Receiving Process Data receipt process is as below. iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
1. In case of IP raw, 6byte header is attached to the data received. The header structure is as below.
IP Address (4) Data Size (2) (*Data size except for 6 bytes of header)
2. Read the value of Socket n RX Read Pointer Register(Sn_RX_RR), and find out the starting address of received data. 3. Read the header information (6byte) from the address figured out at above 2 of RX Memory. 4. Get the IP address of remote peer and data size from the header. 5. Read the received data from the RX Memory as much as the dat size of above 4. The starting number is the (vaule of above 2 +6). 6. Increase the value of Socket n RX Read Pointer Register(Sn_RX_RR) as much as Value of Data size field + 6 7. Give RECV command to Socket n Command Register(Sn_CR).
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Send DATA? / Sending Process Data transmission process is as below, 1. Write the IP address information of the remote peer on Socket n Destination IP Address Register(Sn_DIPR). 2. Find out TX Memory free size by reading the value of Socket n TX Free Size Register (Sn_TX_FSR). 3. Read the value of Socket n TX Write Pointer Register(Sn_TX_WR) and find out the starting address to write data to transmit. 4. Write data to transmit on TX Memory with the information of above 2 & 3. The size of transmitting data should not be larger than the value of Socket n TX Free Size Register(Sn_TX_FSR). 5. Increase the value of Socket n TX Write Pointer Register(Sn_TX_WR) as much as the size of transmitted data. 6. Give SEND commands to Socket n Command Register(Sn_CR).
Complete Sending Timeout Finished? / Socket Closed Next actions are same as UDP. Refer to 5.2.2 UDP.
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
5.3. Usage of PPPoE environment
As like ADSL, at the PPPoE, communication is available after acquiring the network information by connection with PPPoE SERVER. In this case, user doesnt need to assign the value of GAR, SUBR, and IPR. For more details, refer to follows. PPPoE(RFC 2516),PAP mechanism(RFC 1334), CHAP mechanism(RFC 1994).
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Socket Initialization Initialize the socket as PPPoE and try the connection to PPPoE SERVER. 1. Set the PPPoE bit of Mode Register(MR) as 1. 2. Set the protocol field of Socket 0 Mode Register(S0_MR) as PPPoE(0x05). Be sure to use Socket 0. Other sockets are not supported. 3. Write 0XFF on the Socket 0 Destination Hardware Address Register(S0_DHAR). 4. Give OPEN command to Socket 0 Command Register(S0_CR). 5. For the connection with PPPoE SERVER, give CONNECT command to the Socket 0 Command Register(S0_CR).
iinec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
PPPoE SERVER? It should be checked if it is connected with PPPoE SERVER as below. 1. Check if RECV value of Socket n Interrupt Register(Sn_IR) is 1 . (In this case if the interrupt of Socket n is activated, interrupt occurs. Refer to Interrupt Register (IR), Interrupt Mask Register (IMR), Socket n Interrupt Register (Sn_IR).)
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Auth Type? Authentication type can be checked as below. 1. Read the value of Authentication Type Register in PPPoE(PATR). 2. If PATR value is 0xC023, PAP process is performed, if 0xC223, CHAP process is done.
Received Challenge? In case of CHAP, Challenge value from PPPoE SERVER can be used for authentication process. 1. Data structure received in RX Memory is as below.
0xC2 0x23 0x01 CHAL_ID(1) Dont care (2) CHAL_LEN(1) CHALLENGE(variable)
2. Read the value of Socket 0 RX Read Pointer Register(Sn_RX_RR), and find out the starting address of data received. 3. Read the value of Socket 0 RX Received Size Register(Sn_RX_RSR), and find out the size of data received. 4. Read 7bytes from the address of above 2. 5. Save CHAL_ID and CHAL_LEN. 6. Read and save the CHALLENGE value as much as CHAL_LEN of above 4.. The starting address is (value of above 2. + 7) 7. Increase the value of Socket n RX Read Pointer Register(Sn_RX_RR) as much as the received data of above 3.. 8. Give RECV command to Socket n Command Register(Sn_CR).
Authentication In case of PAP, 1. Read the value of Socket 0 TX Write Pointer Register (S0_TX_WR), and find out the starting address to write data to transmit. 2. Write the data in below form on the TX Memory.
ID length (1) ID (variable) Password length (1) Password (variable)
3. Increase the value of Write Pointer Register (S0_TX_WR) as much as the data size (1+ID_LEN+1+PWD_LEN). 4. Give SEND commands to Socket n Command Register(Sn_CR).
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
In case of CHAP, 1. Make 64 byte array of below structure with the information of CHAL_ID, CHALLENGE and Password. <----------------------------------------- 64 byte -----------------------------------------> CHAL_ID(1) PWD(variable) CHALLENGE(variable) 0x80 0x00 Padding
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
2. Perform the MD5 process with the array of above 1, and make the authentication code of 16byte. 3. Read the value of Socket 0 TX Write Pointer Register(S0_TX_WR) and find out starting address of data to transmit. 4. Write the data in below form on the TX Memory. 0x10 Authentication code(16) ID(variable)
5. Increase the value of Socket 0 TX Write Pointer Register (S0_TX_WR) as much as the data size (1 + the length of authentication code(16) + length of ID). 6. Give SEND command to Socket n Command Register(Sn_CR).
Success? It can be checked as below if user authentication is succeeded or not. 1. If the CON bit value of Socket 0 Interrupt Register(S0_IR) is 1, authentication is succeeded. (In this case, if interrupt of Socket 0 is activated, interrupt will occur. Refer to Interrupt Register (IR), Interrupt Mask Register (IMR), and Socket 0 Interrupt Register (S0_IR).) 2. If TIMEOUT bit value of Socket 0 Interrupt Register(S0_IR) is 1, authentication is failed. (In this case, if interrupt of Socket 0 is activated, interrupt will occur. Refer to Interrupt Register (IR), Interrupt Mask Register (IMR), and Socket n Interrupt Register (Sn_IR)) 3. In case of authentication success, information will be saved in PPPoE corresponding register(Refer to Saving Information) and connection will be closed. 4. In case of authentication failure, it checks if there is another authentication method except for PAP or CHAP, and if the information of ID and Password is correct, and tries from the first step. If the cause of failure is another authentication, W3150 can not support.
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Saving Information As PPPoE connection is succeeded, PPPoE related information will be saved. 1. Read the value of Socket 0 Destination Hardware Address Register(S0_DHAR) and save it to a variable as PPPoE SERVER Hardware Address. 2. Read the value of Socket 0 Destination Port Register(S0_DPORT) and save it to a variable as PPPoE Session ID. 3. Those valued can be used in the process of PPPoE disconnection.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Socket Close All the process is completed, close the socket. 1. Give CLOSE command to Socket 0 Command Register(S0_CR). In order to use socket 0 as other modes(TCP, UDP, IP Raw, MAC Raw), CLOSE command should be given. DISCONNECT command instead of CLOSE, should not be given. If Socket 0 Mode is PPPoE, DISCON commands will perform PPPoE SERVER disconnection. Therefore, with this commands, all the sockets can not perform normal communication. For the normal action, PPPoE connection should be performed from the first step.
* PPPoE connection termination can be performed as below. 1. Set the PPPoE bit of Mode Register(MR) as 1. 2. Set the protocol field of Socket 0 Mode Register(S0_MR) as PPPoE(0x05). Be sure to use Socket 0. Other sockets are not supported. 3. Write PPPoE SERVER Hardware Address saved in a variable to Socket 0 Destination Hardware Address Register(S0_DHAR). 4. Write PPPoE Session ID saved in a variable to the Socket 0 Destination Port Register. 5. Give OPEN command to Socket 0 Command Register(S0_CR). 6. Give DISCON command to Socket 0 Command Register(S0_CR).
* After PPPoE authentication, TCP communication, UDP communication, and IP_RAW communication are same as 5.2.1. TCP, 5.2.2. UDP, and 5.2.3. IP raw.
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
6. Application Information
For the communication with MCU, W3150 provides Direct Bus I/F and Indirect Bus I/F mode. For the communication with Ethernet PHY, MII is used.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
6.1. Direct Bus I/F Mode.
Direct Bus I/F mode uses 15bit address line and 8bit data line, /CS, /RD, /WR, /INT.
6.2. Indirect Bus I/F Mode.
Indirect Bus I/F mode uses 2bit address line and 8bit data line, /CS, /RD, /WR, /INT. [14:2], other address lines should process Pull-down.
Indirect bus I/F mode related register is as below. Value Symbol Description It performs the selection of Indirect bus I/F mode, Little/Big endian, and 0x00 MR address automatic increase. Refer to 4. Register Description for more detail.
ienec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Indirect bus I/F mode address Register MSB/LSB can be decided by LB bit of MODE Register. 1. In case that LB bit is set to 0 0x01 0x02 IDM_AR0 IDM_AR1 0x01 IDM_AR0 : MSB 2. In case that LB bit is set to 1 0x01 IDM_AR0 : LSB 0x03 IDM_DR Indirect bus I/F mode data Register 0x02 IDM_AR1 : MSB 0x02 IDM_AR1 : LSB
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
In order to read or write the internal register or internal TX/RX Memory, 1. Write the address to read or write on IDM_AR0,1. 2. Read or Write IDM_DR. In order to read or write the data on the sequential address, set AI bit of MR(Mode Register). With this, user performs above 1 only one time. Whenever reading or writing IDM_DR, IDM_AR value increases by 1 automatically. So, the value can be processed on the sequential address just by continuous reading or writing of IDM_DR.
6.3. MII (Media Independent Interface)
The MII handles the data transfer between the W3150 and the Physical Layer Device. The MII is composed of TX_CLK, TXE, and TXD[0:3] signals for sending data and RX_CLK, CRS, RXDV, RXD[0:3], and COL signals for receiving data. When sending data from the W3150, TXE and TXD[0:3] are output in synchronization with the falling edges of TX_CLK input from the Physical Layer Device because Physical Layer Devices generally recognize the rising edges of TX_CLK. When receiving data, in general, the Physical Layer Devices output CRS, RXDV, RXD[0:3], and COL signals in synchronization with the falling edges of RX_CLK, so the W3100A recognizes the signals at the rising edges of RX_CLK.
icnec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
7. Electrical Specification
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
7.1. Absolute Maximum Ratings
Symbol VDD VIN IIN TOP TSTG Parameter DC Supply voltage DC input voltage DC input current Operating temperature Storage temperature -0.3 to 3.6 -0.3 to 5.5 (5V tolerant) 15 0 to 80 -55 to 125 Rating Unit V V mA C C
*COMMENT: Stressing the device beyond the Absolute Maximum Ratings may cause permanent damage.
7.2. DC Characteristics
Symbol VDD VIH VIL Parameter DC Supply voltage Test Condition Junction temperature is from -55C to 125C Min 3.0 Typ Max 3.6 VDD + 0.3 0.3 * VDD Unit V
High level input voltage
2.0
V
Low level input voltage VDD = 3.0, IOH = -100 IOH = -1 mA IOH = -2 mA VDD = 3.0, IOL = 100 IOL = 1 mA IOL = 2 mA A A
- 0.3 2.9 2.4 1.9
V V V V
VOH
High level output voltage
VI = VIH
0.2 0.4 0.6 15
V V V A
VOL
Low level output voltage
VI = VIL
II
Input Current
VDD = 3.6, VI = VDD or GND
enec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
7.3. AC Characteristics
7.3.1. Reset Timing
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Symbol tRST tRLC
Parameter Reset Cycle Time /RESET to PLOCK Output
Min 96 ns -
Max 125 s
einec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
7.3.2.
Register/Memory READ Timing
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Symbol tRC tCVO tRVO tCLZ tRLZ tCHZ tRHZ
Parameter Read Cycle Time /CS to Valid Output /RD to Valid Output /CS to Low-Z Output /RD to Low-Z Output /CS to High-Z Output /RD to High-Z Output
Min 96 ns 0 ns 0 ns -
Max 96 ns 96 ns 1 ns 1 ns
einec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
7.3.3.
Register/Memory WRITE Timing
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Symbol tWC tCW tWP tSD tHD
Parameter Write Cycle Time /CS to Write End /WR Pulse width Data Setup to Write End Data Hold from Write End
Min 72 ns 64 ns 64 ns 8 ns 8 ns
Max -
einec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
7.3.4.
MII(Media Independent Interface) Timing
MII Tx TIMING
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Symbol tCO tDCS tCO tDCS
Parameter TX_CLK to TXD, TX_EN TXD, TX_EN setup time to TX_CLK TX_CLK to TXD, TX_EN TXD, TX_EN setup time to TX_CLK
Notes 10 Mbps 10 Mbps 100 Mbps 100 Mbps
Min 202 ns 195 ns 22 ns 15 ns
Typ -
Max 205 ns 198 ns 25 ns 18 ns
einec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
MII Rx TIMING
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Symbol tDCS tCDH tDCS tCDH
Parameter Valid Data to RX_CLK (setup) RX_CLK to Valid Data (hold) Valid Data to RX_CLK (setup) RX_CLK to Valid Data (hold)
Notes 10 Mbps 10 Mbps 100 Mbps 100 Mbps
Min 5 ns 5 ns 5 ns 5 ns
Typ -
Max -
eenec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
8. IR Reflow Temperature Profile (Lead-Free)
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
Moisture Sensitivity Level at 260oC IR Condition: 2. Dry Bag Required: Yes 1 year out of bag time at max 30oC/60%RH.
Max. Temperature 260oC Ramp up rate Pre-heat temperature at 175C(25C) Temperature above 217C Time within 5C of actual peak temperature Peak temperature range Ramp-down rate < 3oC/second 77-95 seconds 96-107 seconds 17-25 seconds 258-260oC < 6oC/second
eenec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
9. Package Description
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/
eenec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
eenec (c) Copyright 2005 WIZnet Co., Inc. All rights reserved.
Eiie U- oE(R)o io/ Eiie U- oE(R)o io/


▲Up To Search▲   

 
Price & Availability of W3150

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X